/* Below, we retrieve the highest customer ID, which is being stored as a property of the PROJECT object (see "start.htm"). We then add one to this ID number so that we have one higher than the current highest customer number in the database, thus giving a new, unique ID number. We lock the project object briefly to make sure that only one client may change this number at a time. If we did not lock the object, simulataneous accesses of the object could cause the lastID property to become corrupt. */ project.lock(); project.lastID = 1 + project.lastID; client.customerID = project.lastID; project.unlock();

Add a New Customer

Note: All fields are required for the new customer to be accepted.

ID:
write("" + project.lastID + "");
Customer Name (Last, First):

Address:

City:

State:

ZIP #####-####:

Telephone (###)###-####: